require 'test/unit' 
require 'example'     


class ChurnTests < Test::Unit::TestCase 

   def test_month_before_is_28_days
		assert_equal(Time.local(2005, 1, 1),
                 month_before(Time.local(2005, 1, 29)))
   end
  
   def test_header_format
		assert_equal("Changes since 2005-08-05:",
                 header(Time.local(2005, 8, 5)))
   end
   
   def test_header_format_month_before
		assert_equal("Changes since 2005-01-01:",
                 header(month_before(Time.local(2005, 1, 29))))
   end
   
   def test_system_line_format
		assert_equal("         audit *****(5)",
                 subsystem_line("audit",5))
   end
   
   def test_starcreator
		assert_equal("*****",
                 starcreator(5))
   end
end